#ifndef ENEMY_H
#define ENEMY_H

#include "Vector.h"
#include "Position.h"
#include "Block.h"
#include "Controller.h"
#include "Entity.h"
#include "Texture.h"

class Enemy : public Quad {
private:
	Vector m_speed;
	bool m_intersecting;
	bool m_dead;
	bool m_firstFall;

public:
	Enemy(const Position& p);
	void update( float frametime );
	void setIntersect(Entity * h, int side);
	void setDead();
	bool isDead();

	virtual bool shouldUpdate( const Position& playerpos )
	{
		return ((playerpos.x + 350 )> m_pos.x );
	}


};



#endif